/*
 * @Description: 
 * @Author: william
 * @Date: 2025-06-03 09:21:17
 * @LastEditors: william
 * @LastEditTime: 2025-07-08 17:53:28
 */
@import './root.scss';
@import './variables.scss';
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import 'uview-plus/index.scss';
@import './component.scss';

// 弹框表单样式
.nw-dialog-body {
  //
}

.scroll-table {
  max-height: 100%;
  width: 100%;
  padding: 20rpx;
  box-sizing: border-box;
  .uni-table-scroll {
    width: calc(750rpx - 20rpx);
    background-color: #fff;
    box-sizing: border-box;
  }
}

.scroll-content {
  max-height: 100%;
  box-sizing: border-box;
  // 防止直接子元素的margin-bottom不生效，触发BFC
  .uni-scroll-view-content {
    &::after {
      display: block;
      content: '';
      height: 1rpx;
    }
  }
}

.nw-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 22rpx;
  font-weight: 400;
  color: var(--color-333);
}

// 自定义表格样式
.nw-table {
  // margin-top: 28rpx;
  // padding: 26rpx 20rpx;
  background-color: var(--bg-color);
  box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(6, 29, 23, 0.03);
  border-radius: 18rpx;
  box-sizing: border-box;
  &.nw-table2 {
    .tr {
      .th,
      .td {
        font-size: 18rpx;
      }
    }
  }
  .tr {
    display: flex;
    .th,
    .td {
      flex: 1;
      text-align: center;
      padding: 6rpx;
      word-wrap: break-word;
      word-break: break-all;
      white-space: pre-wrap;
      font-size: 22rpx;
      font-weight: 400;
      color: var(--color-333);
    }
    .th {
      background-color: #f7f7f7;
    }
    .td {
      .nw-radio-group {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0 !important;
      }
      :deep(.uni-data-checklist) {
        flex: 1;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        .checklist-group .checklist-box {
          margin: 0;
          margin-right: 0;
          .checklist-content {
            display: none;
          }
        }
      }
    }
  }
  .tbody {
    border: 1rpx solid #dcdcdc;
    .tr + .tr {
      border-top: 1rpx solid #dcdcdc;
    }
  }
}
